import { t } from '@/hooks/web/useI18n'
import { Layout } from '@/utils/routerHelper'

const pickbookRouter: AppRouteRecordRaw[] = [
  {
    path: '/pickbook',
    name: 'Pickbook',
    component: Layout,
    redirect: '/pickbook/user',
    meta: {
      title: t('menu.pickbook'),
      icon: 'ep:book-filled',
      orderNo: 10
    },
    children: [
      // 用户管理
      {
        path: 'user',
        name: 'PickbookUser',
        component: () => import('@/views/pickbook/user/index.vue'),
        meta: {
          title: t('menu.pickbookUser'),
          icon: 'ep:user'
        }
      },
      // 阅读历史
      {
        path: 'user-reading-history',
        name: 'UserReadingHistory',
        component: () => import('@/views/pickbook/user-reading-history/index.vue'),
        meta: {
          title: t('menu.pickbook.userReadingHistory'),
          icon: 'ep:read'
        }
      },
      // 其他子模块路由...
    ]
  }
]

export default pickbookRouter